import request from "@/utils/request";

// 获取用户信息
export function loginApi() {
  return request({
    url: "/login",
    method: "post",
  });
}

// 表单提交
export function protectedApi() {
  return request({
    url: "/protected",
    method: "post",
  });
}
//刷新token
export function refreshTokenApi() {
  return request({
    url: "/refresh_token",
    method: "get",
  });
}
